import { Layout } from '@fl/utils/routerHelper'

import bidding from './modules/bidding'
import categoryManagement from './modules/category-management'
import enterpriseManagement from './modules/enterprise-management'
import mallSetting from './modules/mall-setting'
import orderManagement from './modules/order-management'
import pricingTool from './modules/pricing-tool'
import productCenter from './modules/product-center'
import strategicAgreement from './modules/strategic-agreement'
import systemSetting from './modules/system-setting'

const OperationsPagesRoute: AppRouteRecordRaw = {
    children: [
        enterpriseManagement,
        productCenter,
        strategicAgreement,
        bidding,
        orderManagement,
        systemSetting,
        mallSetting,
        categoryManagement,
        pricingTool,
    ],
    component: Layout,
    meta: {
        roles: ['admin'],
        title: '运营端',
    },
    name: 'operations-pagess',
    path: '/operations-pages',
    redirect: '/operations-pages/operations-enterprise-management/operations-enterprise-info-list',
}

export default OperationsPagesRoute
